import axios from 'axios'
import Cookie from 'js-cookie'
const http=axios.create({
    headers:{"Content-Type" : "application/json;charset=UTF-8"}
});
http.defaults.baseURL="http://127.0.0.1:9393/";

http.interceptors.request.use(function (config) {
    // config.headers['token'] = Cookie.get('token')?Cookie.get('token'):'';
    config.headers['Content-Type'] = 'application/json;charset=UTF-8'
    return config
}),function (error) {
    return Promise.reject(error)
}

export default http;